package com.zp.base.entity.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 用药途径业务对象
 *
 * @author zhang peng
 * @date 2023-01-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AdministrationDictBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 数据标签
     */
    @NotBlank(message = "数据标签不能为空", groups = {AddGroup.class, EditGroup.class})
    private String label;

    /**
     * 机构id
     */
    @NotBlank(message = "机构id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 数据值
     */
    @NotBlank(message = "数据值不能为空", groups = {AddGroup.class, EditGroup.class})
    private String value;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long sort;

    /**
     * 门诊住院标识
     */
    @NotBlank(message = "门诊住院标识不能为空", groups = {AddGroup.class, EditGroup.class})
    private String outpOrInp;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 勾选的字典id集合
     */
    private List<String> checkList;

}
